home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UNIXTOOL / UNIXLIB37B / !UnixLib37_src_clib_h_kernel < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-09  |  1.3 KB  |  57 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/h/RCS/kernel,v $
  4.  * $Date: 1996/10/30 21:58:58 $
  5.  * $Revision: 1.2 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * This file is intended to provide an interface between UnxiLib and
  10.  * DeskLib, for the few _kernel calls that it uses. Any simularity between
  11.  * this and the Norcroft kernel.h file is probably due to having to use
  12.  * identical structs.
  13.  *
  14.  * $Log: kernel,v $
  15.  * Revision 1.2  1996/10/30 21:58:58  unixlib
  16.  * Massive changes made by Nick Burret and Peter Burwood.
  17.  *
  18.  * Revision 1.1  1996/04/19 21:02:57  simon
  19.  * Initial revision
  20.  *
  21.  ***************************************************************************/
  22.  
  23. #ifndef __KERNEL_H
  24. #define __KERNEL_H
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. typedef struct {
  31.    int r[10];
  32. } _kernel_swi_regs;
  33.  
  34. typedef struct {
  35.    int load, exec;
  36.    int start, end;
  37. } _kernel_osfile_block;
  38.  
  39. typedef struct {
  40.    int errnum;
  41.    char errmess[252];
  42. } _kernel_oserror;
  43.  
  44. extern int _kernel_fpavailable(void);
  45.  
  46. #define _kernel_NONX 0x80000000
  47. extern _kernel_oserror *_kernel_swi(int no, _kernel_swi_regs *in,
  48.                                    _kernel_swi_regs *out);
  49.  
  50. extern int _kernel_osfile(int op, const char *name, _kernel_osfile_block *inout);
  51.  
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55.  
  56. #endif
  57.